﻿# 简单的系统验证脚本

Write-Host "=== 学生管理系统验证工具 ==="

# 检查Docker是否可用
if (Get-Command "docker" -ErrorAction SilentlyContinue) {
    Write-Host "✅ Docker已安装"
} else {
    Write-Host "❌ 未找到Docker，请先安装Docker Desktop"
    Exit
}

# 检查系统容器状态
Write-Host "\n正在检查系统容器..."
docker ps --filter "name=student-management-"

# 显示登录信息
Write-Host "\n系统默认账号信息："
Write-Host "- 管理员: admin / Admin@123"
Write-Host "- 教师: teacher / Teacher@123"
Write-Host "- 学生: student / Student@123"

Write-Host "\n使用说明："
Write-Host "1. 后端API文档：http://localhost:5000/swagger/index.html"
Write-Host "2. 前端应用：http://localhost:80"
Write-Host "3. 停止系统：docker-compose -f docker\docker-compose.yml down"